package com.sitechasia.webx.components.xtable.toolbar;
import org.extremecomponents.table.core.TableModel;
import org.extremecomponents.util.HtmlBuilder;
/**
 * 本类为列表无TOOLBAR的样例
 * @author Administrator
 *
 */
public class CustomdivSSViewNoToolbar extends CustomdivSSView {
	@Override
	protected void beforeBodyInternal(TableModel model) {

		getTableBuilder().getHtmlBuilder().table(2).width("100%").styleClass("contentModule").close();
		getTableBuilder().getHtmlBuilder().tr(2).close();
		getTableBuilder().getHtmlBuilder().td(4).close();
		getTableBuilder().getHtmlBuilder().div().styleClass("contentModuleB").close();

		getTableBuilder().tableStart();

		getTableBuilder().theadStart();

		getTableBuilder().titleRowSpanColumns();

		getTableBuilder().headerRow();

		getTableBuilder().theadEnd();

		getTableBuilder().tbodyStart();

	}

	@Override
	protected void afterBodyInternal(TableModel model) {
		getCalcBuilder().defaultCalcLayout();
		getTableBuilder().tbodyEnd();
		getTableBuilder().tableEnd();
		getTableBuilder().getHtmlBuilder().divEnd();
		getTableBuilder().getHtmlBuilder().tdEnd();
		getTableBuilder().getHtmlBuilder().trEnd(2);
		getTableBuilder().getHtmlBuilder().tableEnd(1);


		//toolbar(getHtmlBuilder(), getTableModel());

	}

	protected void toolbar(HtmlBuilder html, TableModel model) {

		(new CustomdivSSToolbar(html, model)).layout();
	}


}
